-- GENERATED SPELL FOR [Veteran Guardian] --


function spell0_13332(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(19130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13332', 0, 1)
end

function spell1_13332(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_13332', 5316, 1)
end

function Sorts_13332(pUnit, Event)
local choix_sorts_13332 = math.random(0, 1)
if choix_sorts_13332 == 0 then
pUnit:RegisterEvent('spell0_13332', 1, 1)
end
if choix_sorts_13332 == 1 then
pUnit:RegisterEvent('spell1_13332', 1, 1)
end
end

function mob13332_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13332', math.random(1500, 3000), 1)
end

function mob13332_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13332_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13332_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13332, 1, 'mob13332_Action')
RegisterUnitEvent(13332, 2, 'mob13332_Leave')
RegisterUnitEvent(13332, 3, 'mob13332_Kill')
RegisterUnitEvent(13332, 4, 'mob13332_Die')
